#!/bin/bash
binFile=go_final_url_linux
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "dir:${DIR}"
cp "${DIR}/${binFile}.ini" "${DIR}/../supervisor_config/"
supervisorctl update
supervisorctl stop $binFile
supervisorctl start $binFile